package com.punch.order.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.punch.common.model.SuperEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * <p>
 * 课程结算表
 * </p>
 *
 * @author wjj
 * @since 2020-09-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("course_settlement")
public class CourseSettlement extends SuperEntity<CourseSettlement> {

    private static final long serialVersionUID = 1L;

    /**
     * 结算对象id
     */
    @TableField("settlement_to_id")
    private Long settlementToId;

    /**
     * 结算对象名称
     */
    @TableField("settlement_to_name")
    private String settlementToName;

    /**
     * 0-学校 1-机构
     */
    @TableField("settlement_type")
    private Integer settlementType;

    /**
     * 结算金额
     */
    @TableField("settlement_amount")
    private BigDecimal settlementAmount;


    /**
     * 结算月份
     */
    @TableField("settlement_month")
    @JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
    private LocalDate settlementMonth;

    /**
     * 结算状态 0-待确认 1-已确认 2-已打款
     */
    @TableField("settlement_status")
    private Integer settlementStatus;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
